<?php

/**
 * PronosUser form.
 *
 * @package    pronos
 * @subpackage form
 * @author     sthiebaut
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PronosUserForm extends BasePronosUserForm
{
  public function configure()
  {
	unset(
		$this['created_at'],
		$this['updated_at']    
	);
	  
	$this->validatorSchema['email'] = new sfValidatorAnd(array(
		$this->validatorSchema['email'],
		new sfValidatorEmail(),
	));
	
	 $this->widgetSchema['password'] = new sfWidgetFormInputFile(array(
      'label' => 'Mot de passe',
    ));
	
	$this->widgetSchema->setLabels(array(
		'nickname'    => 'Pseudo',
		'password'      => 'Mot de passe',
		'firstname'   => 'Pr&eacute;nom',
		'lastname'   => 'Nom'
	));
	
	//$this->widgetSchema->setHelp('email', 'Whether the job can also be published on affiliate websites or not.');
  }
}
